// uno.config.ts
import {
  presetIcons,
  presetTypography,
  presetUno,
  // presetWind,
  transformerDirectives,
  transformerVariantGroup,
  defineConfig,
} from 'unocss';

export default defineConfig({
  theme: {
    colors: {
      primary: 'var(--ant-color-primary)',
      success: 'var(--ant-color-success)',
      warning: 'var(--ant-color-warning)',
      error: 'var(--ant-color-error)',
      info: 'var(--ant-color-info)',
    },

    // extend: {
    boxShadow: {
      '1040': '0px 10px 40px 0px rgba(0, 0, 0, 0.03)',
    },
    // },
  },
  content: {
    pipeline: {
      exclude: [
        //  排除扫描的文件
        // exclude files
        'node_modules/**/*',
      ],
      include: [
        //  默认扫描的文件
        // the default
        /\.(vue|[jt]sx|html)($|\?)/,
      ],
    },
  },
  presets: [
    presetUno(),
    // presetWind(),
    presetTypography(),
    presetIcons({
      prefix: [''],
      // cdn: 'https://esm.sh/',
      mode: 'mask',

      extraProperties: {
        display: 'inline-block',
        'vertical-align': 'middle',
        // ...
      },
    }),
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
});
